Quiet a compiler warning
authorMatthias Clasen <mclasen@redhat.com>
Wed, 10 Jan 2018 12:35:46 +0000 (07:35 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 10 Jan 2018 12:35:46 +0000 (07:35 -0500)
Avoid this warning the other way, without bumping the libvulkan
dependency.

gdk/gdkvulkancontext.c

index 8bfbd80246d89809f70b0c772371bd289c9a3b0e..1c4e7906b0519aee8012ace294214409903a757e 100644 (file)
@@ -93,7 +93,7 @@ G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GdkVulkanContext, gdk_vulkan_context, GDK_TYPE
 const char *
 gdk_vulkan_strerror (VkResult result)
 {
-  switch (result)
+  switch ((int)result)
   {
     case VK_SUCCESS:
       return "Command successfully completed.";